#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
void solve()
{
    int x, y;
    int z;
    for (int y = 1; y <= 100; y++)
    {
        for (z = 0; z <= 11; z++)
        {
            if (10 * y - 2 == 12 * (y - 1) - z)
            {
                x = 10 * y - 2;
            }
        }
    }
    cout << x;
}
int main()
{
    solve();
    return 0;
}
